package com.qs.questionnairesurveysystem.service;

import com.qs.questionnairesurveysystem.entity.Answer;

import java.util.List;

public interface AnswerService {

    // 创建新答案
    void createAnswer(Answer answer);

    // 更新答案
    void updateAnswer(Answer answer);

    // 删除答案
    void deleteAnswer(Long answerId);

    // 获取指定答案
    Answer getAnswerById(Long answerId);

    // 获取所有答案
    List<Answer> getAllAnswers();

    // 根据问卷ID获取答案
    List<Answer> getAnswersBySurveyId(Long surveyId);

    // 根据问题ID获取答案
    List<Answer> getAnswersByQuestionId(Long questionId);

    List<Answer> getAnswersBySurveyIdUid(Long surveyId, Long uid);
}
